package file.dir;

import java.io.File;

public class Delete {
    public static void main(String[] args) {
        boolean flag=true;
        char i='a';
        while(flag){
            File dir=new File("./demo/"+i);
            if(dir.exists()){
                dir.delete();
                i++;
            }
            else{
                System.out.println("删除失败!");
                flag=false;
            }
        }
    }
}
